package tk.deep.domain.biz.pay;


import tk.deep.domain.biz.odr.Order;

import java.math.BigDecimal;
import java.util.Date;

/**
 * PayItem class descript the order payment style
 * One order may have one or more PayItem object
 * e.g.
 * Order's total price is 100, a user can pay it
 * using alipay 20 and weixin pay 30 then cash 50.
 * In this case, the order have 3 PayItems.
 * <p>
 * Created by boot on 8/13/15.
 */

public class PayItem {

    // Which order the item belongs to.
    private Order order;
    // payment verdor code, @see PayVendor
    private PayVendor payVendor;
    // trade number
    private String tradeNum;
    // paid price.
    private BigDecimal price;

    // payment vendor account
    private String payAcc;
    // The time when the user paid
    private Date payTime;

}
